@extends('layouts.app')

@section('content')
<div id="new">
    <form action="{{ url('/admin/comment/'.$comment->id) }}" method="POST">
        {{ method_field('PATCH') }}
        {!! csrf_field() !!}
        <input type="hidden" name="id" value="{{ $comment->id }}">
        <div class="form-group">
            <label>Nickname</label>
            <input value="{{ $comment->nickname }}" type="text" name="nickname" class="form-control" style="width: 300px;" required="required" disabled>
        </div>
        <div class="form-group">
            <label>Email address</label>
            <input value="{{ $comment->email }}" type="email" name="email" class="form-control" style="width: 300px;" disabled>
        </div>
        <div class="form-group">
            <label>Home page</label>
            <input value="{{ $comment->website }}" type="text" name="website" class="form-control" style="width: 300px;" disabled>
        </div>
        <div class="form-group">
            <label>Content</label>
            <textarea name="content" id="newFormContent" class="form-control" rows="10" required="required">{{ $comment->content }}</textarea>
        </div>
        <button type="submit" class="btn btn-lg btn-success col-lg-12">Submit</button>
    </form>
</div>
@endsection